package com.lxx.product.service.impl;

import com.lxx.product.mapper.UserMapper;
import com.lxx.product.pojo.User;
import com.lxx.product.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author liuxing
 * @create 2022-08-27 0:13
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserById(Long id) {
        return userMapper.selectById(id);
    }
}
